﻿using System;

namespace TextEditor
{
    

    public class A_DocumentTitle : A_Action
    {
        public override string ActionName()
        {
            return "title";
        }

        public override bool Execute()
        {
            base.myOwnerDocument.Info.Title = base.Param1;
            base.myOwnerDocument.Modified = true;
            return true;
        }

        public override string GetText()
        {
            return base.myOwnerDocument.Info.Title;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }
    }
}

